home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.4 KB | 56 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 2304361 28-Nov-89 17:44
-
- From: D2652 Strategic Planning Sys, D Bell,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: MACDTS Macintosh Developer Tech. Supt.
-
- Sub: Notification manager probs
-
-
- Dear MacAppers,
-
- Hello once again. We've been trying to use the Notification manager in our
- MacApp application, but with little success. here is the code we have writen,
- which is a global procedure called from within our objects:
-
- PROCEDURE PostAlarm(aString: Str255);
- VAR
- err : OSErr;
- message : Str255;
- amessagePtr : StringPtr;
- aNotePtr: QElemPtr;
- aNote : NMRec;
- minusOne: LONGINT;
-
- BEGIN
- { notification manager stuff }
- minusOne := -1;
-
- WITH aNote DO BEGIN
- qType := 8;
- nmMark := 0;
- nmSIcon := NIL;
- nmSound := NIL;
- nmStr := @aString;
- nmResp := @minusOne;
- nmRefCon := 0;
- END;
- aNotePtr := @aNote;
-
- err := NMInstall(@aNote);
- {$IFC qDebug} writeln('adding note, error = ', err); {$ENDC}
- END;
-
-
- Once the object calls this procedure, the 'note' is added to the queue with an
- error = 0. After a slight delay, one of two ugly things happens: either a
- blank dialog appears, and the computer bombs into MacsBug, or the computer
- simply bombs into MacsBug. Any Clues? Thanx.
-
- DannyC
-
-